package xfuzzy.alg_genetico.indeterminado.xfghlOld.model.spec;

import java.io.File;

import xfuzzy.alg_genetico.indeterminado.xfghlOld.model.XfghlChromosome;
import xfuzzy.alg_genetico.indeterminado.xfghlOld.model.XfghlConfig;
import xfuzzy.lang.Specification;
import xfuzzy.lang.XflException;
import xfuzzy.xfedit.Xfedit;

public class pruebaXfghl {

	public static void main(String[] args) {

		//Config
		
		/**DEE 6 variables de entrada*/
		//File file=new File("C:\\Documents and Settings\\Sergio\\Desktop\\XFGHL\\dee.dat");
		//String name="Dee";		
		//int [] chromosome={0,0,0,0};
		
		/**LASER 4 variables de entrada*/
		//File file=new File("C:\\Documents and Settings\\Sergio\\Desktop\\XFGHL\\laser.dat");
		//String name="Laser";
		//int [] chromosome={0,0};
		
		/**QUAKE 3 variables de entrada*/
		File file=new File("C:\\Documents and Settings\\Sergio\\Desktop\\XFGHL\\quake.dat");
		String name="Quake";
		int [] chromosome={2};
		int numEpocas=500;
		
		XfghlConfig config=new XfghlConfig(name,numEpocas,1,file,0.1,1.5,0.7,XfghlOperSet.AndOperatorProd,XfghlOperSet.DefuzOperatorFuzzyMean,XfghlInputType.FREE_TRIANGLES,3,0,20,50,0.3,0.5);		

		
		XfghlChromosome chrom=new XfghlChromosome(config,false);
		chrom.setChromosome(chromosome);
		
		
		chrom.getHierStruct().getM().imprime();
	
		try {
			Specification spec=XfghlSpecification.create(chrom.getHierStruct(), config);
			Xfedit edit=new Xfedit(null,spec);
			edit.setVisible(true);
			
		} catch (XflException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
			
	}
}
